// // 将公共配置和对应环境下的进行合并
const { merge } = require('webpack-merge')
const commonConfig = require('./webpack.config.common')
const prodConfig = require('./webpack.config.prod')
const devConfig = require('./webpack.config.dev')

const isDev = process.env.NODE_ENV === 'development'

module.exports = merge(commonConfig, isDev ? devConfig : prodConfig)

